.class Lcom/waiqin365/lightapp/kaoqin/ab;
.super Ljava/lang/Object;

# interfaces
.implements Landroid/view/View$OnClickListener;


# instance fields
.field final synthetic a:Lcom/waiqin365/lightapp/kaoqin/NewKaoQinApplyActy;


# direct methods
.method constructor <init>(Lcom/waiqin365/lightapp/kaoqin/NewKaoQinApplyActy;)V
    .locals 0

    iput-object p1, p0, Lcom/waiqin365/lightapp/kaoqin/ab;->a:Lcom/waiqin365/lightapp/kaoqin/NewKaoQinApplyActy;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onClick(Landroid/view/View;)V
    .locals 5

    iget-object v0, p0, Lcom/waiqin365/lightapp/kaoqin/ab;->a:Lcom/waiqin365/lightapp/kaoqin/NewKaoQinApplyActy;

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Lcom/waiqin365/lightapp/kaoqin/NewKaoQinApplyActy;->a(Z)Z

    move-result v0

    if-nez v0, :cond_0

    :goto_0
    return-void

    :cond_0
    invoke-virtual {p1}, Landroid/view/View;->getTag()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/lang/String;

    invoke-static {}, Lcom/waiqin365/base/login/mainview/a;->a()Lcom/waiqin365/base/login/mainview/a;

    move-result-object v1

    iget-object v2, p0, Lcom/waiqin365/lightapp/kaoqin/ab;->a:Lcom/waiqin365/lightapp/kaoqin/NewKaoQinApplyActy;

    invoke-static {v2}, Lcom/waiqin365/lightapp/kaoqin/NewKaoQinApplyActy;->d(Lcom/waiqin365/lightapp/kaoqin/NewKaoQinApplyActy;)Landroid/content/Context;

    move-result-object v2

    invoke-virtual {v1, v2}, Lcom/waiqin365/base/login/mainview/a;->p(Landroid/content/Context;)Ljava/lang/String;

    move-result-object v2

    new-instance v3, Lorg/json/JSONObject;

    invoke-direct {v3}, Lorg/json/JSONObject;-><init>()V

    :try_start_0
    const-string/jumbo v1, "data_id"

    iget-object v4, p0, Lcom/waiqin365/lightapp/kaoqin/ab;->a:Lcom/waiqin365/lightapp/kaoqin/NewKaoQinApplyActy;

    invoke-static {v4}, Lcom/waiqin365/lightapp/kaoqin/NewKaoQinApplyActy;->e(Lcom/waiqin365/lightapp/kaoqin/NewKaoQinApplyActy;)Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v3, v1, v4}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    const-string/jumbo v1, "flow_id"

    iget-object v4, p0, Lcom/waiqin365/lightapp/kaoqin/ab;->a:Lcom/waiqin365/lightapp/kaoqin/NewKaoQinApplyActy;

    invoke-static {v4}, Lcom/waiqin365/lightapp/kaoqin/NewKaoQinApplyActy;->f(Lcom/waiqin365/lightapp/kaoqin/NewKaoQinApplyActy;)Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v3, v1, v4}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    const-string/jumbo v1, "form_id"

    iget-object v4, p0, Lcom/waiqin365/lightapp/kaoqin/ab;->a:Lcom/waiqin365/lightapp/kaoqin/NewKaoQinApplyActy;

    invoke-static {v4}, Lcom/waiqin365/lightapp/kaoqin/NewKaoQinApplyActy;->g(Lcom/waiqin365/lightapp/kaoqin/NewKaoQinApplyActy;)Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v3, v1, v4}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    const-string/jumbo v1, "form_data"

    iget-object v4, p0, Lcom/waiqin365/lightapp/kaoqin/ab;->a:Lcom/waiqin365/lightapp/kaoqin/NewKaoQinApplyActy;

    iget-object v4, v4, Lcom/waiqin365/lightapp/kaoqin/NewKaoQinApplyActy;->a:Lorg/json/JSONObject;

    invoke-virtual {v3, v1, v4}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    const-string/jumbo v1, "approval_mode"

    const-string/jumbo v4, ""

    invoke-virtual {v3, v1, v4}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    const-string/jumbo v1, "ccs"

    const-string/jumbo v4, ""

    invoke-virtual {v3, v1, v4}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    const-string/jumbo v1, "is_filish"

    const-string/jumbo v4, ""

    invoke-virtual {v3, v1, v4}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    const-string/jumbo v1, "opinion"

    const-string/jumbo v4, ""

    invoke-virtual {v3, v1, v4}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    const-string/jumbo v1, "tab_type"

    iget-object v4, p0, Lcom/waiqin365/lightapp/kaoqin/ab;->a:Lcom/waiqin365/lightapp/kaoqin/NewKaoQinApplyActy;

    invoke-static {v4}, Lcom/waiqin365/lightapp/kaoqin/NewKaoQinApplyActy;->h(Lcom/waiqin365/lightapp/kaoqin/NewKaoQinApplyActy;)Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v3, v1, v4}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    iget-object v1, p0, Lcom/waiqin365/lightapp/kaoqin/ab;->a:Lcom/waiqin365/lightapp/kaoqin/NewKaoQinApplyActy;

    invoke-static {v1}, Lcom/waiqin365/lightapp/kaoqin/NewKaoQinApplyActy;->i(Lcom/waiqin365/lightapp/kaoqin/NewKaoQinApplyActy;)Lcom/waiqin365/lightapp/view/EmployeeSelectView_Vertical;
    :try_end_0
    .catch Lorg/json/JSONException; {:try_start_0 .. :try_end_0} :catch_1

    move-result-object v1

    if-eqz v1, :cond_1

    :try_start_1
    iget-object v1, p0, Lcom/waiqin365/lightapp/kaoqin/ab;->a:Lcom/waiqin365/lightapp/kaoqin/NewKaoQinApplyActy;

    invoke-static {v1}, Lcom/waiqin365/lightapp/kaoqin/NewKaoQinApplyActy;->i(Lcom/waiqin365/lightapp/kaoqin/NewKaoQinApplyActy;)Lcom/waiqin365/lightapp/view/EmployeeSelectView_Vertical;

    move-result-object v1

    invoke-virtual {v1}, Lcom/waiqin365/lightapp/view/EmployeeSelectView_Vertical;->f()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/String;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-static {v1}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v4

    if-nez v4, :cond_1

    const-string/jumbo v4, "approvers"

    invoke-virtual {v3, v4, v1}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;
    :try_end_1
    .catch Lorg/json/JSONException; {:try_start_1 .. :try_end_1} :catch_0

    :cond_1
    :goto_1
    new-instance v1, Ljava/util/HashMap;

    invoke-direct {v1}, Ljava/util/HashMap;-><init>()V

    const-string/jumbo v4, "data"

    invoke-virtual {v3}, Lorg/json/JSONObject;->toString()Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v1, v4, v3}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    iget-object v3, p0, Lcom/waiqin365/lightapp/kaoqin/ab;->a:Lcom/waiqin365/lightapp/kaoqin/NewKaoQinApplyActy;

    const-string/jumbo v4, ""

    invoke-virtual {v3, v4}, Lcom/waiqin365/lightapp/kaoqin/NewKaoQinApplyActy;->showProgressDialog(Ljava/lang/String;)V

    new-instance v3, Lcom/waiqin365/lightapp/kaoqin/c/b/c;

    invoke-direct {v3, v2, v0, v1}, Lcom/waiqin365/lightapp/kaoqin/c/b/c;-><init>(Ljava/lang/String;Ljava/lang/String;Ljava/util/HashMap;)V

    new-instance v0, Lcom/waiqin365/lightapp/kaoqin/c/b;

    iget-object v1, p0, Lcom/waiqin365/lightapp/kaoqin/ab;->a:Lcom/waiqin365/lightapp/kaoqin/NewKaoQinApplyActy;

    iget-object v1, v1, Lcom/waiqin365/lightapp/kaoqin/NewKaoQinApplyActy;->b:Landroid/os/Handler;

    invoke-direct {v0, v1, v3}, Lcom/waiqin365/lightapp/kaoqin/c/b;-><init>(Landroid/os/Handler;Lcom/waiqin365/lightapp/kaoqin/c/f;)V

    invoke-virtual {v0}, Lcom/waiqin365/lightapp/kaoqin/c/b;->start()V

    goto/16 :goto_0

    :catch_0
    move-exception v1

    :try_start_2
    invoke-virtual {v1}, Lorg/json/JSONException;->printStackTrace()V
    :try_end_2
    .catch Lorg/json/JSONException; {:try_start_2 .. :try_end_2} :catch_1

    goto :goto_1

    :catch_1
    move-exception v1

    invoke-virtual {v1}, Lorg/json/JSONException;->printStackTrace()V

    goto :goto_1
.end method
